<?php

namespace app\common\validate;

use think\Validate;

class Set extends Validate
{
	protected $rule = [
		'safe_password' => [ 'require',  'regex' => '/^[0-9]{6}$/i'],
	];
	protected $message = [
		'safe_password.regex' => '安全密码格式错误',
		'safe_password.require' => '安全密码不能为空',
	];
	protected $scene = [
		'safe_password' => [ 'safe_password' ],
	];
}